
<?php echo $form->create('Agent', array('action'=>'login')); ?>


<table width="400" border="0" class="login">
                <tr>
                  <td width="44%" align='right'><?php echo $form->label('Usuario', 'Email:');?></td>
                  <td width="56%" ><?php echo $form->input('email', array('size'=>'20','label'=>''));?></td>
                </tr>

                <tr>
                  <td width="44%" align='right'><?php echo $form->label('password', 'Clave:');?></td>
                  <td width="56%"><?php echo $form->password('password', array('size'=>'20'));?>    </td>
                </tr>
                <tr>
                  <td colspan="2"><div align="center" class="style3">
                      <?php echo $form->submit('Ingresar');?>
                  </div></td>

                </tr>
                <tr><td colspan="2">
                 <?php
// if an error occured display the error message
if(isset($error)) {
	echo "<div class='error'>" . $error . "</div>";
}
?>
</td colspan="3">
</tr>
              </table>

